package com.school.revervationSys.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.school.revervationSys.dto.LoginDto;
import com.school.revervationSys.dto.PasswordUpdateDto;
import com.school.revervationSys.dto.UserDto;
import com.school.revervationSys.entity.User;
import com.school.revervationSys.utils.BaseResponse;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author msj
 * @since 2024-04-13
 */
public interface IUserService extends IService<User> {

    List<User> userList(UserDto param);
    boolean addUser(User user);

    boolean updateUser(User user);

    boolean delete(Integer userId);

    User userInfo(Integer userId);

    BaseResponse updatePassword(PasswordUpdateDto param);

    BaseResponse login(LoginDto param);
    boolean batchDelete(List<Integer> ids);
}
